package aaaaa;

public class TryCatch {

    public static void main(String[] args) {
        String b = tcf();
        System.out.println(b);
    }

    public static String tcf() {
        String a = "a";
        try {
            System.out.println("执行try");
            a = a + "b";
            int i = 1 / 0;
            return a;
        } catch (Exception e) {
            System.out.println("执行catch");

            a = a + "c";
            String c = "sd";
            return c;
        } finally {
            System.out.println("执行finally");
            a = a + "d";
            String c = "gfh";
            return c;
        }
    }
}